/**
 * 
 */
package com.gmail.sabujdas.patterns.absfactory;

import com.gmail.sabujdas.patterns.absfactory.model.Acid;
import com.gmail.sabujdas.patterns.absfactory.model.InorganicAcid;
import com.gmail.sabujdas.patterns.absfactory.model.InorganicSalt;
import com.gmail.sabujdas.patterns.absfactory.model.Salt;

/**
 * @author Sabuj Das | sabuj.das@gmail.com
 *
 */
public class InorganicFactory extends ChemicalFactory {
	
	private static final ChemicalType DEFAULT_TYPE = ChemicalType.INORGANIC;

	public Salt createSalt(String name) {
		InorganicSalt organicSalt = new InorganicSalt(name);
		organicSalt.setType(DEFAULT_TYPE);
		return organicSalt;
	}

	public Acid createAcid(String name) {
		InorganicAcid organicAcid = new InorganicAcid(name);
		organicAcid.setType(DEFAULT_TYPE);
		return organicAcid;
	}

}
